package cobra

import "zin/framework/contract"

// MustMakeApp 从容器中获取App服务
func (c *Command) MustMakeApp() contract.IContractApp {
	return c.GetContainer().MustMake(contract.ProviderKeyApp).(contract.IContractApp)
}

// MustMakeKernel 从容器中获取Kernel服务
func (c *Command) MustMakeKernel() contract.IContractKernel {
	return c.GetContainer().MustMake(contract.ProviderKeyKernel).(contract.IContractKernel)
}
